<%@ page language="java"  pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1" />
    <title>约来约美 </title>
    <link rel="stylesheet" href="${static_host}style/userct_base.css" />
    <script src="${static_host}script/jquery-1.11.1.min.js"></script>
    <script src="${static_host}script/userct_hp.js"></script>
  <script src="${static_host}js/layer/layer.m.js"></script>
</head>
<body>

<div class="page">
  <div class="header">
    <h1 class="hd-title">用户中心</h1>
    <a href="javascript:;" class="pos-l"></a>
    <a href="javascript:location.reload(true);" class="pos-r"></a>
  </div>

  <div class="content">
  
    <div class="user_panel">
      <img src="${user.avatar}" />
      <div>
      <p>${user.nickname}</p>
      <p>我的积分：${user.point}</p>
      </div>
    </div>
    
    <ul class="cate">
    <li><a href="centent!orderlist.do">我的订单</a></li>
    <li><a href="centent!favshop.do">我的收藏</a></li>
    <li><a href="javascript:ticps('正在开发中，敬请期待！');">优惠券</a></li>
    </ul>
    
    <ul class="listview">
    <li><a href="centent!userinfo.do">个人资料</a></li>
    <li><a href="centent!password.do">修改密码</a></li>
    </ul>
    
    <ul class="listview">
    <li><a href="javascript:ticps('正在开发中，敬请期待！');">美丽圈</a></li>
    </ul>
    
    <ul class="listview">
    <li><a href="javascript:ticps('正在开发中，敬请期待！');">邀请码</a></li>
    </ul>
    
    
        <ul class="listview">
    <li><a href="javascript:;" id="exit">退出当前账户</a></li>
    </ul>
<!--     <ul class="listview">
    <li><a href="javascript:;">退出</a></li>
    </ul> -->
  
  </div><!-- content -->
  
  <!-- footer -->
      <!-- footer -->
   <jsp:include page="/inc/userfooter.jsp" />
  
</div><!-- page -->
<script type="text/javascript">

function ticps(text){
	layer.open({
	    content: text,
	    style: 'background-color:#09C1FF; color:#fff; border:none;',
	    time: 2
	});
}
$("#exit").click(function(){
	layer.open({
		    title:"取消订单",
		    content: '您是否确定退出当前登录的账户？',
		    btn: ['确认', '取消'],
		    shadeClose: false,
		    yes: function(){
		    	window.location.href="centent!exit.do";
		    	//layer.open({content: '你点了确认', time: 1});
		    }, no: function(){
		       // layer.open({content: '你选择了取消', time: 1});
		    }
		});
	  
  })
</script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> 
<script type="text/javascript" src="/js/wx/getpoint.js?a=2"></script> 
</body>
</html>